package com.example.repositories;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.repository.CrudRepository;

import com.example.models.Users;

public interface UsersRepository extends MongoRepository<Users, String>{
//public interface UsersRepository extends JpaRepository<Users, Long>{
	Users findByUsername(String username);
	Users findByUsernameAndPassword(String username, String password);
}
